import './main.scss';
import './main.css';
import generateText from './sub';
import moment from 'moment';

let app  = document.createElement('div');
app.innerHTML = '<h1>Hello webpack.</h1>';
app.appendChild(generateText());
document.body.appendChild(app);

var h1Time  = document.createElement('h1');
h1Time.innerHTML = '当前时间：' + moment().format('YYYY-MM-DD HH:mm:ss')
document.body.appendChild(h1Time);
